home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
actlib13.zip
/
TOOLS.ZIP
/
GETKEY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-25
|
413b
|
23 lines
/* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
#include "tools.h"
#include <conio.h>
/***
*
* Function : getkey
*
* Description : return a 2-bytes key pressed
* (extended characters are added to 256).
*
*/
int getkey( void )
{ int car;
if ( ! (car = getch()) ) car = 256 + getch();
return car;
}